import { NextRequest, NextResponse } from "next/server";

export async function POST(req: NextRequest) {
  try {
    const { email, password } = await req.json();
    // TODO: 注册数据写入到数据库
    console.log("用户注册", email);
  } catch (error) {
    console.log("错误");
    
  }
  return NextResponse.json({
    message: "注册成功",
  });
}
